package com.lx.order.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * TODO 添加描述
 *
 * @author wangLJ
 * @date 2024/10/24 17:01
 */
@Slf4j
@Component
@RocketMQMessageListener(consumerGroup = "transaction-group", topic = "transaction-topic")
public class TransactionMessageConsumer implements RocketMQListener<String> {

    @Override
    public void onMessage(String message) {
        log.info("事务消息消费成功,消息内容:{}", message);
    }
}

